import request from '@/utils/request'

export function adminGetList(data) {
  return request({
    url: '/subject/admin/list',
    method: 'get',
    params: data
  })
}

export function getOne(subId) {
  const data = { subId: subId }
  return request({
    url: '/subject/one',
    method: 'get',
    params: data
  })
}

export function LeaderGetList(data) {
  return request({
    url: '/subject/leader/list',
    method: 'get',
    params: data
  })
}

export function download(subId) {
  const data = { subId: subId }
  return request({
    url: '/subject/leader/download',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}

export function deleteSub(subId) {
  const data = { subId: subId }
  return request({
    url: '/subject/leader/delete',
    method: 'delete',
    params: data
  })
}

export function review(data) {
  return request({
    url: '/subject/admin/review',
    method: 'post',
    data
  })
}

export function forConclusion(data) {
  return request({
    url: '/subject/leader/forConclusion',
    method: 'get',
    params: data
  })
}
